<div class="art-post">
    <div class="art-post-tl"></div>
    <div class="art-post-tr"></div>
    <div class="art-post-bl"></div>
    <div class="art-post-br"></div>
    <div class="art-post-tc"></div>
    <div class="art-post-bc"></div>
    <div class="art-post-cl"></div>
    <div class="art-post-cr"></div>
    <div class="art-post-cc"></div>
    <div class="art-post-body">
        <div class="art-post-inner art-article">
            <h2 class="art-postheader">[Danh sách block]</h2>
            <br/><br/>
            <form action="<?php echo Utility::currentUrl(); ?>" method="post">
                <input type="hidden" name="action" value="<?php echo $action; ?>" />
                <input type="hidden" name="template_id" value="<?php echo $template_id; ?>"/>
            <table class="tbl-form">
                <tr>
                    <td>Module name</td>
                    <td><input type="text" name="name" value="" class="form-input" /> </td>
                </tr>
                <tr>
                    <td>Title</td>
                    <td><input type="text" name="title" value="" class="form-input"/></td>
                </tr>
                <tr>
                    <td>Description</td>
                    <td><textarea rows="5" cols="40" name="description"></textarea></td>
                </tr>
                <tr>
                    <td>Type</td>
                    <td>
                        <select name="type">
                            <option value="frontend">Front-end</option>
                            <option value="backend">Back-end</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Status</td>
                    <td>
                        <select name="status">
                            <option value="1">Active</option>
                            <option value="0">Lock</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <input type="submit" name="submit" value="<?php echo ($action == 'add')?'Add':'Update';?>" />
                        <input type="reset" />
                        <input type="button" value="Back" onclick="window.location='<?php echo Utility::getSiteUrl() . '/template/detail/' . $template_id; ?>'" />
                    </td>
                </tr>
            </table>
            </form>
        </div>

        <div class="cleared"></div>
    </div>
</div>